public class Book {
    
    private String name;
    private String genre;
    private int rentedTimes;

    public Book() {
    }

    public Book(String name, String genre, int rentedTimes) {
        this.name = name;
        this.genre = genre;
        this.rentedTimes = rentedTimes;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRentedTimes() {
        return rentedTimes;
    }

    public void setRentedTimes(int rentedTimes) {
        this.rentedTimes = rentedTimes;
    }

    @Override
    public String toString() {
        return "Book{" + "name=" + name + ", genre=" + genre + ", rentedTimes=" + rentedTimes + '}';
    }
    
    
}